package org.csu.mypetstore.persistence;

import org.apache.ibatis.annotations.Param;
import org.csu.mypetstore.domain.LineItem;
import org.csu.mypetstore.domain.Order;
import org.csu.mypetstore.domain.OrderStatus;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    Order getOrder(int orderID);

    String getStatus(int orderID);

    List<Order> getOrderListByUserID(@Param("username") String userID) ;

    List<Order> getAllOrders() ;

    void addOrder(Order order);

    void updateOrder(Order order);

    void updateOrderStatus(OrderStatus orderStatus);

    void deleteOrder(int orderID);

    List<OrderStatus> getOrderStatus(int orderID);

    void addOrderStatus(OrderStatus orderStatus);

    List<LineItem> getOrderLineItem(int orderID);

    void addLineItem(LineItem lineItem);
}
